{include file="$sMainTemplatePath/_modules/Listing/Browse.html"}
<div style="font-size: 10pt; font-weight:bold;">{messages block='View'}</div>
<table style="width:100%;">
{foreach name=aFrst from=$aCatList item=aCat}
{if $smarty.foreach.aFrst.iteration%2 == 1}
    <tr>
        <td style="width:50%;font-size:9pt;vertical-align:top;" class="color">
            <table style="width:100%;" cellpadding="5" cellspacing="5">
                <tr>
                    <td class="border2" onclick="window.location.href='{url link=public.listing.viewall cat=$aCat.id foxseotitle=$aCat.name}';">
                    <div class="mainmenu5" style="cursor:pointer;">
                        <div style="padding:5px;font-size:8pt;">
                            <img src="design/pic/spacer.gif" alt="" width="8" height="8" class="sqr" style="vertical-align:middle;" />
                            <span style="vertical-align:middle;"><b>{$aCat.name}</b></span>
                        </div>
                    </div>
                    <div style="font-size:8pt;" class="color">
                    {if !empty($aCat.listing)}
                    {foreach from=$aCat.listing item=aList}
                        <table style="width:100%;border-top:0px;">
                            <tr style="cursor:pointer;">
                                <td style="width:15%;vertical-align:top;text-align:center;font-size:8pt;">
                                	{$aList.time|date_format:$sDateFormatShort}<br />
									{if $aList.bloc}
										<a href="{url link=public.listing.viewall country=$aList.location}">{img src=$aList.srcf alt=$aList.location style="vertical-align:middle;" onmouseover="showInfo2(this.alt)" onmouseout="return nd();" style="vertical-align: middle;" height="12" width="18"}</a>
									{/if}
								</td>
                                <td style="width:85%;font-size:9pt;vertical-align:top;" class="color">
                                    <b><a href="{url link=public.listing.view id=$aList.id foxseotitle=$aList.title}">{$aList.title|clean|escape}</a></b>
                                    <div style="padding:4px;font-size:8pt;"><a href="{url link=public.user name=$aList.user}">{$aList.user}</a></div>
                                </td>
                            </tr>
                        </table>
                    {/foreach}
                    {else}
                    <div class="message_info">{language text="there_are_no_listings_yet"}.</div>
                    {/if}
                    </div>
                    <div style="font-size:8pt;text-align:right;padding:4px;">
                        {if !empty($aCat.listing)}
                        <a class="link_action" href="{url link=public.listing.viewall cat=$aCat.id foxseotitle=$aCat.name}">[ {language text="view_all"} ]</a>
                        {/if}
                        <a class="link_action" href="{url link=public.listing.create cat=$aCat.id}">[ {language text="create_listing_842"} ]</a>
                    </div>
                    </td>
                </tr>
            </table>
        </td>
<!--  END COLUMN ITERATION -->
{else}
        <td style="width:50%;font-size:9pt;vertical-align:top;" class="color">
            <table style="width:100%;" cellpadding="5" cellspacing="5">
                <tr>
                    <td class="border2" onclick="window.location.href='{url link=public.listing.viewall cat=$aCat.id foxseotitle=$aCat.name}';">
                    <div class="mainmenu5" style="cursor:pointer;">
                        <div style="padding:5px;font-size:8pt;">
				            <img src="design/pic/spacer.gif" alt="" width="8" height="8" class="sqr" style="vertical-align:middle;" />
				            <span style="vertical-align:middle;"><b>{$aCat.name}</b></span>
                        </div>
                    </div>
                    <div style="font-size:8pt;" class="color">
                    {if !empty($aCat.listing)}
                    {foreach from=$aCat.listing item=aList}
                        <table style="width:100%;border-top:0px;">
                            <tr style="cursor:pointer;">
                                <td style="width:15%;vertical-align:top;text-align:center;font-size:8pt;">
                                	{$aList.time|date_format:$sDateFormatShort}<br />
									{if $aList.bloc}
										<a href="{url link=public.listing.viewall country=$aList.location}">{img src=$aList.srcf alt=$aList.location style="vertical-align:middle;" onmouseover="showInfo2(this.alt)" onmouseout="return nd();" style="vertical-align: middle;" height="12" width="18"}</a>
									{/if}
								</td>
                                <td style="width:85%;font-size:9pt;vertical-align:top;" class="color">
                                    <b><a href="{url link=public.listing.view id=$aList.id foxseotitle=$aList.title}">{$aList.title}</a></b>
                                    <div style="padding:4px;font-size:8pt;"><a href="{url link=public.user name=$aList.user}">{$aList.user}</a></div>
                                </td>
                            </tr>
                        </table>
                    {/foreach}
                    {else}
                    <div class="message_info">{language text="there_are_no_listings_yet"}.</div>
                    {/if}
                    </div>
                    <div style="font-size:8pt;text-align:right;padding:4px;">
                    {if !empty($aCat.listing)}
                        <a class="link_action" href="{url link=public.listing.viewall cat=$aCat.id foxseotitle=$aCat.name}">[ {language text="view_all"} ]</a>
                    {/if}
                        <a class="link_action" href="{url link=public.listing.create cat=$aCat.id}">[ {language text="create_listing_842"} ]</a>
                    </div>
                    </td>
                </tr>
            </table>
        </td>

    </tr>
{/if}
{/foreach}
<!-- END ROW ITERATION   -->
</table>
<br /><br />